package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.Coach;
import com.ruoyi.business.domain.Course;

import java.time.LocalDateTime;
import java.util.List;

public interface ICourseService extends IService<Course> {
    /**
     * 查询课程列表
     *
     * @param course 课程
     * @return 课程集合
     */
    public List<Course> getCourseList(Course course);

    public List<Course> getAllCourseList();

    public List<Course> getCourseListByCoachIdAndTime(Course course);

    public List<Course> getCourseListByCoachId(Course course);

    public Course getCourseById(Long id);

    public List<Course> getCourseByNameAndStartDate(Course course);

    public Course getCourseBySortAndStartDate(Course course);

    public List<Course> getCourseByTimeRange(String startTime, String endTime);

    /**
     * 新增课程数据
     *
     * @param course 课程
     */
    public int insertCourse(Course course);

    String insertBatchCourse(List<Course> courses, String operName);

    /**
     * 更新课程数据
     *
     * @param course 课程
     */
    public int updateCourse(Course course);

    public Course getCourseById(long id);

    public List<Course> getCourseByVenueId(long venueId);

    public List<Course> getCourseByCoachId(long coachId);

    public List<Course> getBannerCourse();

    public List<Course> getCourseByDateAndType(Course course);

    public int deleteCurseByIds(Long[] ids);
}
